package org.finesys.quartz.event;

import lombok.Getter;
import org.finesys.quartz.entity.SysJob;
import org.quartz.JobExecutionContext;
import org.springframework.context.ApplicationEvent;

/**
 * 定时任务时间类
 */
@Getter
public class SysJobEvent extends ApplicationEvent {
    /**
     * 定时任务明细
     */
    private final SysJob sysJob;
    /**
     * 定时任务执行器
     */
    private final JobExecutionContext context;

    public SysJobEvent(Object source, SysJob sysJob, JobExecutionContext context) {
        super(source);
        this.sysJob = sysJob;
        this.context = context;
    }
}
